<template>
  <div class="layoutContent">
    <div class="oneMenu">
      <one-menu></one-menu>
    </div>
    <div class="main">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import OneMenu from "@/components/OneMenu.vue";
import { messages } from "../utils/msg";
export default {
  components: { OneMenu },
  name: "Home",
  mounted() {
    this.$store.commit("INIT_DATA", {
      totalUnreadCount: 0,
      initMessageList: messages
    });
  }
};
</script>

<style lang="less" scoped>
.layoutContent {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.oneMenu {
  width: 63px;
  background-color: rgba(50, 50, 90, 1);
  background-position: bottom;
  background-repeat: no-repeat;
  position: relative;
}
.main {
  flex: auto;
  overflow: hidden;
  position: relative;
  background: #f5f8fd;
}
</style>
